<%= javascript_include_tag "projects" %>

<h1><%= t :edit, :scope => :project %></h1>

<% form_for @project, :html => {:class => "basic-form rounded large"} do |project_form| %>
	
	<%= error_messages_for :project, :class => "alert red error rounded-8"%>
	
	<%= render :partial => "form", :locals => {:f => project_form} %>
	
	<fieldset>
		<legend class="icon cross"><%= t :legend, :scope => [:project, :delete] %></legend>
		
		<dl class="rounded-4">
			<dd class="hint"><small><%= t :hint, :scope => [:project, :delete] %></small></dd>
			<dd><%= project_form.check_box :mark_for_deletion %><b><%= project_form.label :mark_for_deletion, t(:label, :scope => [:project, :delete]) %></b></dd>
		</dl>
	</fieldset>
	
	<%= awesome_submit_button t(:save, :scope => :form), :edit %>
	
<% end %>

<% content_for :sidebar do %>

	<dl class="icon-list">
		<dt class="icon lock"><%= link_to t(:edit, :scope => :permission), project_permissions_url(@project) %></dt>
		<dd><%= t :add, :scope => [:permission, :hints] %></dd>
	</dl>

	<p class="title lightest rounded-4"><%= t :admin, :scope => :role, :count => 2 %></p>
	<p><small><%= t :can_edit_project, :scope => [:project, :hints] %></small></p>
	
	<dl class="icon-list">
		<%= render :partial => "designation_list_item", :collection => @project.designations.administrators, :as => :designation %>	
	</dl>
	
<% end %>